package com.itheima.edu.info.managers.controller;

import com.itheima.edu.info.managers.domain.Student;
import com.itheima.edu.info.managers.service.StudentService;

import java.util.Scanner;

public class StudentController extends BaseStudentController{
   private Scanner sc = new Scanner(System.in);

    public Student inputStudentInfo(String id) {
        System.out.println("请输入学生的姓名");
        String name = sc.next();
        System.out.println("请输入学生的年龄");
        String age = sc.next();
        System.out.println("请输入学生的生日");
        String birthday = sc.next();
        Student stu = new Student();
        stu.setId(id);
        stu.setName(name);
        stu.setAge(age);
        stu.setBirthday(birthday);
        return stu;
    }


}
